﻿@model IList<int>
<table class="table table-bordered">
    <tbody>
        <tr>
            <th>一</th>
            <th>二</th>
            <th>三</th>
            <th>四</th>
            <th>五</th>
            <th>六</th>
            <th>日</th>
        </tr>
        <tr>
            @for (int i = 1; i <= 7; i++)
            {
                string isChecked = Model.Contains(i) ? "checked" : string.Empty;
                string isDisabled = ViewBag.isDisabled;
                <td><input type="checkbox" name="DaysInWeek" value="@i" @isChecked @isDisabled /></td>
            }
        </tr>
    </tbody>
</table>
